package com.example.mobile2130606012zxx0505;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {
    private String TAG = "LifeCycle";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Log.i(TAG, "onCreate:   1");
    }
    @Override
    protected void onStart() {
        super.onStart();
        Log.i(TAG, "onStart:   2");
    }
    @Override
    protected void onResume() {
        super.onResume();
        Log.i(TAG, "onResume:  3");
    }
    @Override
    protected void onPause() {
        super.onPause();
        Log.i(TAG, "onPause:   4");
    }
    @Override
    protected void onStop() {
        super.onStop();
        Log.i(TAG, "onStop:    5");
    }
    @Override
    protected void onRestart(){super.onRestart();}
    @Override
    protected void onDestroy(){super.onDestroy();}
}